package com.xwli.webservice.cxf.service.impl;


import com.xwli.webservice.cxf.service.CxfWebServiceDemo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @author xwli
 * @date: 2021/10/18 15:34
 * @desc
 * @since JDK 1.8
 */
@WebService(
        targetNamespace = "http://com.xwli.webservice.cxf",
        serviceName = "CxfWebService",
        endpointInterface = "com.xwli.webservice.cxf.service.CxfWebServiceDemo"
)
@Slf4j
@Component
public class CxfWebServiceDemoImpl implements CxfWebServiceDemo {
    @Override
    public String cxfHello(String request) {

        log.info("CxfWebServiceDemo接收到请求信息:\n"+request);
        return "你好,"+request+"访问成功！！！";
    }
}

